package com.zz.service.impl;

import com.zz.pojo.User;
import com.zz.service.UserService;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Repository
@Service
public class UserServiceImpl implements UserService {
    /**
     * @Date: 13:47 2021/8/5
     * @Param: []
     * @return: java.util.List<com.zz.pojo.User>
     * @Description: 查询所有用户
     **/
    @Override
    public List<User> findAll() {
        return null;
    }

    /**
     * @Date: 15:46 2021/8/5
     * @Param: [id]
     * @return: com.zz.pojo.User
     * @Description: 通过id查询用户
     **/
    @Override
    public User findById(Integer id) {
        return null;
    }

    /**
     * @Date: 16:11 2021/8/5
     * @Param: [name, sex]
     * @return: java.util.List<com.zz.pojo.User>
     * @Description:  根据姓名和性别模糊查询
     **/
    @Override
    public List<User> findNameAndSex(String name, String sex) {
        return null;
    }

    /**
     * @Date: 16:40 2021/8/5
     * @Param: [name]
     * @return: com.zz.pojo.User
     * @Description: 更新某个用户的名字
     **/
    @Override
    public int updateName(Integer id, String name) {
        return 0;
    }


    /**
     * @Date: 17:17 2021/8/5
     * @Param: [id]
     * @return: int
     * @Description: 根据id删除某个用户
     **/
    @Override
    public int deleteById(Integer id) {
        return 0;
    }


    /**
     * @Date: 17:27 2021/8/5
     * @Param: [id, name, username, sex, age]
     * @return: int
     * @Description: 新增用户
     **/
    @Override
    public int insertUser(Integer id, String name, String username, String sex, Integer age) {
        return 0;
    }
}
